package util;

import java.sql.Connection;
import java.sql.DriverManager;

public class DBUtil {
	private final static String ClassName="com.mysql.jdbc.Driver";
	private final static String Url="jdbc:mysql://localhost:3306/vipmanage";
	private final static String User="root";
	private final static String Password="root";
	
	public static Connection getConnection() throws Exception{
			Class.forName(ClassName);
			return DriverManager.getConnection(Url, User, Password);
	}
}
